import django.utils.timezone as timezone

from django.db import models

# Create your models here.


class FinanceOfStore(models.Model):
    """店铺绩效"""
    Time = models.DateTimeField(default=timezone.now, verbose_name='绩效日期')
    StoreName = models.CharField(max_length=64, verbose_name='店铺名')
    BuyerName = models.CharField(max_length=64, verbose_name='下单人名')
    SalesChannel = models.CharField(max_length=32, verbose_name='订单渠道')
    Money = models.DecimalField(max_digits=8, decimal_places=2, verbose_name='订单金额')
    ShippingMoney = models.DecimalField(max_digits=8, decimal_places=2, default=0, verbose_name='运费')
    TaxMoney = models.DecimalField(max_digits=8, decimal_places=2, default=0, verbose_name='手续费')
    OrderStatus = models.CharField(max_length=32, verbose_name='订单状态')
    GoodsCounts = models.IntegerField(default=0, verbose_name='商品数量')
    FulfillmentChannel = models.CharField(max_length=32, default='', verbose_name='配送方式')


    class Meta:
        db_table = 'tb_finance_or_store'
        verbose_name = '店铺绩效'
        verbose_name_plural = verbose_name



class Finance(models.Model):
    pass




